Skip to content

Fix Havok physics delta time for 60 FPS - #24

Merged
YesterMester merged 1 commit into
YesterMester:mainfrom
tronuo0:tronuo/havok_60fps_fix
Sep 6, 2026
Merged

Fix Havok physics delta time for 60 FPS#24
YesterMester merged 1 commit into
YesterMester:mainfrom
tronuo0:tronuo/havok_60fps_fix

Conversation

@tronuo0

@tronuo0 tronuo0 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR implements a proper, stable 60 FPS mode for The Simpsons Game.

Simply changing the presentation interval ($2 \to 1$) without adjusting physics leads to game-breaking issues: Homer clipping through geometry, trampoline physics anomalies, double-speed animations, and collision glitches. This change couples the swap interval unlock with proper Havok physics timestep adjustment.


Changes Made

  1. Havok Simulation Delta Time: Updated the hardcoded physics timestep constant from ~0.0333333s (30 FPS) to ~0.016683s (0x3C88AB86 / 60 FPS).
// 60 FPS Havok Physics Timestep Fix (0x82159238 -> 0x3C88AB86 / ~0.0166667f)
temp.u32 = 0x3C88AB86;

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@YesterMester

Copy link
Copy Markdown
Owner

your awesome!

@YesterMester
YesterMester merged commit a80093f into YesterMester:main Sep 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants